package com.cuihanyu.newuniversityover.fragment;

import android.animation.ObjectAnimator;
import android.view.View;
import android.view.animation.LinearInterpolator;
import android.widget.ImageView;
import android.widget.TextView;

import com.cuihanyu.newuniversityover.R;
import com.cuihanyu.newuniversityover.base.BaseFragment;


/**
 * Created by 崔汉宇 on 2017/8/7.
 */

public class MiniClass_Fragment extends BaseFragment {
    private ImageView mIvCircleBg;
    private ObjectAnimator mCircleAnimator;
    @Override
    public View initView() {
        View view = View.inflate(activity, R.layout.fragment_miniclass, null);
        mIvCircleBg = view.findViewById(R.id.iv_circle_bg);  ///签到背景
        mCircleAnimator = ObjectAnimator.ofFloat(mIvCircleBg, "rotation", 0.0f, 360.0f);// 给签到背景设置动画
        mCircleAnimator.setDuration(5000);
        mCircleAnimator.setInterpolator(new LinearInterpolator());
        mCircleAnimator.setRepeatCount(-1);
        mCircleAnimator.setRepeatMode(ObjectAnimator.RESTART);
        mCircleAnimator.start();
        return view;
    }
}
